//
//  LWXDownloadManager.h
//  EPA
//
//  Created by lanou3g on 16/4/28.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "MusicDownloadTask.h"
#import "LWXRadioListModel.h"

typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);

// 当前有多少在下载，下载多少，是否完成
@interface LWXDownloadManager : NSObject
@property (nonatomic, strong) NSMutableArray *array;
// 单例
+ (instancetype)shareManager;
// 添加下载任务
- (void)addDownloadTask:(LWXRadioListModel *)model Progress:(ProgressBlock)proBlock Complete:(CompleteBlock)comBlock;

// 当前下载任务个数

- (NSInteger)count;
// 取标题
- (NSString *)getTitleWithIndex:(NSInteger)index ;
// 设置 block
- (void)setProgressBlock:(ProgressBlock)proBlock CompleteBlock:(CompleteBlock)comBlock Index:(NSInteger)index;

@end
